-- GENERATED SPELL FOR [Phantasmal Fire] --


function spell0_27651(pUnit, Event) --@Blaze,n/a--
pUnit:FullCastSpellOnTarget(50744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27651', 2500, 1)
end

function spell1_27651(pUnit, Event) --@Blaze,n/a--
pUnit:FullCastSpellOnTarget(59225,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27651', 2500, 1)
end

function Sorts_27651(pUnit, Event)
local choix_sorts_27651 = math.random(0, 1)
if choix_sorts_27651 == 0 then
pUnit:RegisterEvent('spell0_27651', 1, 1)
end
if choix_sorts_27651 == 1 then
pUnit:RegisterEvent('spell1_27651', 1, 1)
end
end

function mob27651_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27651', math.random(1500, 3000), 1)
end

function mob27651_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27651_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27651_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27651, 1, 'mob27651_Action')
RegisterUnitEvent(27651, 2, 'mob27651_Leave')
RegisterUnitEvent(27651, 3, 'mob27651_Kill')
RegisterUnitEvent(27651, 4, 'mob27651_Die')
